home *** CD-ROM | disk | FTP | other *** search
/ Internet 53 / INTERNET53.iso / pc / software / windows / building / homesite evaluation / data1.cab / HS_Wizards / DHTML / SlideShow_Main.wml < prev   
Encoding:
Text File  |  1998-10-08  |  5.2 KB  |  159 lines

  1. <WIZIF LCase(Transition) eq 'box in'>
  2.     <WIZSET TransitionType = 0>
  3. <WIZELSEIF LCase(Transition) eq    'box out'>
  4.     <WIZSET TransitionType = 1>
  5. <WIZELSEIF LCase(Transition) eq    'circle in'>
  6.     <WIZSET TransitionType = 2>
  7. <WIZELSEIF LCase(Transition) eq    'circle out'>
  8.     <WIZSET TransitionType = 3>
  9. <WIZELSEIF LCase(Transition) eq    'wipe up'>
  10.     <WIZSET TransitionType = 4>
  11. <WIZELSEIF LCase(Transition) eq    'wipe down'>
  12.     <WIZSET TransitionType = 5>
  13. <WIZELSEIF LCase(Transition) eq    'wipe right'>
  14.     <WIZSET TransitionType = 6>
  15. <WIZELSEIF LCase(Transition) eq    'wipe left'>
  16.     <WIZSET TransitionType = 7>
  17. <WIZELSEIF LCase(Transition) eq    'vertical blinds'>
  18.     <WIZSET TransitionType = 8>
  19. <WIZELSEIF LCase(Transition) eq    'horizontal blinds'>
  20.     <WIZSET TransitionType = 9>
  21. <WIZELSEIF LCase(Transition) eq    'checkerboard across'>
  22.     <WIZSET TransitionType = 10>
  23. <WIZELSEIF LCase(Transition) eq    'checkerboard down'>
  24.     <WIZSET TransitionType = 11>
  25. <WIZELSEIF LCase(Transition) eq    'random dissolve'>
  26.     <WIZSET TransitionType = 12>
  27. <WIZELSEIF LCase(Transition) eq    'split vertical in'>
  28.     <WIZSET TransitionType = 13>
  29. <WIZELSEIF LCase(Transition) eq    'plit vertical out'>
  30.     <WIZSET TransitionType = 14>
  31. <WIZELSEIF LCase(Transition) eq    'split horizontal in'>
  32.     <WIZSET TransitionType = 15>
  33. <WIZELSEIF LCase(Transition) eq    'split horizontal out'>
  34.     <WIZSET TransitionType = 16>
  35. <WIZELSEIF LCase(Transition) eq    'strips left down'>
  36.     <WIZSET TransitionType = 17>
  37. <WIZELSEIF LCase(Transition) eq    'strips left up'>
  38.     <WIZSET TransitionType = 18>
  39. <WIZELSEIF LCase(Transition) eq    'strips right down'>
  40.     <WIZSET TransitionType = 19>
  41. <WIZELSEIF LCase(Transition) eq    'strips right up'>
  42.     <WIZSET TransitionType = 20>
  43. <WIZELSEIF LCase(Transition) eq    'random bars horizontal'>
  44.     <WIZSET TransitionType = 21>
  45. <WIZELSEIF LCase(Transition) eq    'random bars vertical'>
  46.     <WIZSET TransitionType = 22>
  47. <WIZELSEIF LCase(Transition) eq    'random'>
  48.     <WIZSET TransitionType = 23>
  49. <WIZELSE>
  50.     <WIZSET TransitionType = 23>
  51. </WIZIF>    
  52.  
  53.  
  54. <!-- This slide-show can be properly viewed only with IE 4.0 -->
  55.  
  56. <SCRIPT LANGUAGE="VBScript">
  57. <!--
  58.     dim switchEnabled
  59.     dim curSlide
  60.     dim slideCount
  61.     dim autoSwitch
  62.  
  63.     curSlide = 1        ' first slide
  64.     slideCount = $${SlideCount}        ' number of slides
  65.     autoSwitch = <WIZIF AutoSwitch>True<WIZELSE>False</WIZIF>    ' automatic slide show
  66.  
  67.     sub Window_onLoad()
  68.         dim i
  69.         for i = 2 to slideCount
  70.             document.all.item("slide" & i).style.visibility = "hidden"
  71.         next
  72.  
  73.         switchEnabled = True
  74.         if autoSwitch then
  75.             SwitchSlides()
  76.         end if
  77.     end sub
  78.  
  79.     sub SlideContainer_OnFilterChange()
  80.         switchEnabled = True
  81.         if autoSwitch then
  82.             SwitchSlides()
  83.         end if
  84.     end sub
  85.  
  86.     sub SwitchSlides()
  87.         if switchEnabled then
  88.             switchEnabled = False
  89.  
  90.             SlideContainer.filters.item(0).Apply()
  91.             SlideContainer.filters.item(0).Transition = $${TransitionType}
  92.  
  93.             document.all.item("Slide" & curSlide).style.visibility = "hidden"
  94.             curSlide = curSlide + 1 
  95.             if curSlide > slideCount then
  96.                 curSlide = 1
  97.             end if
  98.             document.all.item("Slide" & curSlide).style.visibility = ""
  99.  
  100.             SlideContainer.filters(0).play()
  101.         end if
  102.     end sub
  103. ' -->
  104. </SCRIPT>
  105.  
  106. <WIZSET ContainerStyle = ''>
  107. <WIZSET ContainerStyle = ContainerStyle & "position:" & Position & "; ">
  108. <WIZSET ContainerStyle = ContainerStyle & "left:" & Left & "; ">
  109. <WIZSET ContainerStyle = ContainerStyle & "top:" & Top & "; ">
  110. <WIZSET ContainerStyle = ContainerStyle & "width:" & Width & "; ">
  111. <WIZSET ContainerStyle = ContainerStyle & "height:" & Height & "; ">
  112. <WIZSET ContainerStyle = ContainerStyle & "filter:revealTrans(duration=" & Duration & ", transition=" & TransitionType & "); ">
  113.  
  114. <WIZSET SlideStyle = ''>
  115. <WIZSET SlideStyle = SlideStyle & "position:absolute; ">
  116. <WIZSET SlideStyle = SlideStyle & "left:0; ">
  117. <WIZSET SlideStyle = SlideStyle & "top:0; ">
  118. <WIZSET SlideStyle = SlideStyle & "width:" & Width & "; ">
  119. <WIZSET SlideStyle = SlideStyle & "height:" & Height & "; ">
  120. <WIZSET SlideStyle = SlideStyle & "font-family:verdana; color:silver; font-size:14pt; ">
  121.  
  122. <WIZSET xSTYLE = DefaultCase( 'STYLE' )>
  123. <WIZSET xTYPE = DefaultCase( 'TYPE' )>
  124. <WIZSET xDIV = DefaultCase( 'DIV' )>
  125. <WIZSET xID = DefaultCase( 'ID' )>
  126. <WIZSET xCLASS = DefaultCase( 'CLASS' )>
  127. <WIZSET xONCLICK = DefaultCase( 'ONCLICK' )>
  128. <WIZSET xIMG = DefaultCase( 'IMG' )>
  129. <WIZSET xSRC = DefaultCase( 'SRC' )>
  130.  
  131. <$${xSTYLE} $${xTYPE}="text/css">
  132. <!--
  133. .container { $${ContainerStyle} }
  134. .slide { $${SlideStyle} }
  135. -->
  136. </$${xSTYLE}>
  137.  
  138. <!-- slide container -->
  139. <$${xDIV} $${xID}="SlideContainer" $${xCLASS}="container" $${xONCLICK}="VBScript: SwitchSlides()">
  140. <WIZLOOP index="i" from="1" to="$${SlideCount}">
  141.  
  142.     <!-- slide $${i} -->
  143.     <$${xDIV} $${xID}="Slide$${i}" $${xCLASS}="slide">
  144.         <WIZSET ImageContentParam = 'ImageContent' & i>
  145.         <WIZSET HTMLContentParam = 'HTMLContent' & i>
  146.         <WIZIF ParameterExists( ImageContentParam )><WIZIF Evaluate( ImageContentParam & ' neq ''''' )
  147.             ><$${xIMG} $${xSRC}="$${Evaluate( 'ImageContent' & i )}">
  148.         </WIZIF></WIZIF
  149.         ><WIZIF ParameterExists( HTMLContentParam )>$${Evaluate( HTMLContentParam )}</WIZIF>
  150.     </$${xDIV}>
  151. </WIZLOOP>
  152.     <!-- If you add manually additional slides, customize the slideCount setting in
  153.          the VBScript code above. -->
  154.  
  155. </$${xDIV}>
  156. <WIZIF not AutoSwitch>
  157.     Click on the slide ...
  158. </WIZIF>
  159.